import request from '@/utils/request'

// 查询微信榜单列表
export function listWxList(query) {
  return request({
    url: '/allocation/wxList/list',
    method: 'get',
    params: query
  })
}

// 查询微信榜单详细
export function getWxList(id) {
  return request({
    url: '/allocation/wxList/' + id,
    method: 'get'
  })
}

// 新增微信榜单
export function addWxList(data) {
  return request({
    url: '/allocation/wxList',
    method: 'post',
    data: data
  })
}

// 修改微信榜单
export function updateWxList(data) {
  return request({
    url: '/allocation/wxList',
    method: 'put',
    data: data
  })
}

// 删除微信榜单
export function delWxList(id) {
  return request({
    url: '/allocation/wxList/' + id,
    method: 'delete'
  })
}
